package com.atguigu03._extends;

/**
 * ClassName: Person
 * Package: com.atguigu03
 * Description:
 *
 * @Author ZY
 * @Create 20:10
 * @Version 1.0
 */
public class Person {
    String name;
    private int age;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void eat(){
        System.out.println(name + "吃饭");
    }

    public void sleep(){
        System.out.println(name + "睡觉");
    }

    public void show(){
        System.out.println("age = " + age);
    }
}
